package com.zatech.cgnci.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 批改历史表
 * </p>
 *
 * @author Generator
 * @since 2024-12-17
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("cgnci_endorsement_history")
@ApiModel(value = "CgnciEndorsementHistoryDO对象", description = "批改历史表")
public class CgnciEndorsementHistoryDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("历史记录ID")
    @TableId(value = "history_id", type = IdType.ASSIGN_ID)
    private Long historyId;

    @ApiModelProperty("业务ID")
    private String businessId;

    @ApiModelProperty("批单号")
    private String endorsementId;

    @ApiModelProperty("表名")
    private String tableName;

    @ApiModelProperty("记录ID")
    private String recordId;

    @ApiModelProperty("记录完整内容(JSON格式)")
    private String recordContent;

    @ApiModelProperty("版本号")
    private Integer version;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("创建人")
    private String createUser;

    @ApiModelProperty("更新时间")
    @TableField(update = "now()")
    private Date updateTime;

    @ApiModelProperty("更新人")
    private String updateUser;


}
